#!/bin/bash

set -e

# Clean up
npm run clean

# Generate color schemes
npm run build:precompile-color-schemes

# Generate types for CSS Modules
npm run type-css-modules

# Bundle
npx rollup -c

# Type check
npx tsc --project tsconfig.build.json

# Build components.json file for documentation
npm run build:components.json

# Build hooks.json file for documentation
npm run build:hooks.json
